<template>
	<view class="settlement-page">
		<view class="open-info">
			<image class="bg" src="@/static/income.png" mode="widthFix"></image>
			<view class="content">
				<view class="info">
					<view class="name-box">
						<text class="name">张三</text>
						<view class="authentication">已认证</view>
						<u-icon name="edit-pen" color="#fff" size="36rpx"></u-icon>
					</view>
					<view class="idcard-box">
						<u-icon name="checkmark-circle-fill" color="#fff" size="32rpx"></u-icon>
						<text class="text">已开户</text>
						<view class="idcard">411254********1206</view>
					</view>
				</view>
				<view class="edit">修改密码</view>
			</view>
		</view>
		<view class="empty-box">
			<image class="image" src="@/static/settlement-empty.png" mode="aspectFill"></image>
			<view class="text">您暂未开户</view>
			<button class="btn" @click="goOpen">去开户</button>
		</view>
	</view>
</template>

<script>
	export default {
		data () {
			return {
				
			}
		},
		methods: {
			goOpen () {
				uni.navigateTo({
					url: '/pages/my/settlement/openAccount'
				})
			}
		}
	}
</script>

<style lang="scss">
.settlement-page {
	box-sizing: border-box;
	min-height: 100%;
	background-color: #f5f5f5;
	.open-info {
		height: 208rpx;
		overflow: hidden;
		position: relative;
		.bg {
			position: absolute;
			top: 0;
			left: 0;
			z-index: 0;
			width: 750rpx;
		}
		.content {
			position: absolute;
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			z-index: 5;
			padding-left: 62rpx;
			display: flex;
			align-items: center;
			.info {
				flex: 1;
				border-right: 1rpx solid #e5e5e5;
				.name-box {
					display: flex;
					align-items: center;
					.name {
						color: #fff;
						font-size: 36rpx;
						font-weight: bold;
					}
					.authentication {
						margin-left: 12rpx;
						margin-right: 8rpx;
						width: 100rpx;
						height: 38rpx;
						border-radius: 38rpx;
						color: #fff;
						font-size: 22rpx;
						text-align: center;
						line-height: 38rpx;
						background-color: #5749f7;
					}
				}
				.idcard-box {
					margin-top: 18rpx;
					display: flex;
					align-items: center;
					.text {
						margin-left: 10rpx;
						color: #fff;
						font-size: 26rpx;
					}
					.idcard {
						margin-left: 30rpx;
						color: #fff;
						font-size: 26rpx;
					}
				}
			}
			.edit {
				width: 178rpx;
				color: #fff;
				font-size: 28rpx;
				text-align: center;
			}
		}
	}
	.empty-box {
		padding: 150rpx 0;
		text-align: center;
		.image {
			width: 204rpx;
			height: 204rpx;
		}
		.text {
			margin-top: 14rpx;
			color: #333;
			font-size: 34rpx;
			font-weight: bold;
		}
		.btn {
			margin: 108rpx auto 0;
			border-radius: 100rpx;
			width: 440rpx;
			height: 100rpx;
			color: #fff;
			font-size: 36rpx;
			font-weight: bold;
			line-height: 100rpx;
			background-color: #5749f7;
		}
	}
}
</style>
